package top.wilbert.collegelink.forum.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import top.wilbert.collegelink.common.utils.R;
import top.wilbert.collegelink.common.vo.es.TalkEsModel;

/**
 * @author augus
 * @create 2023-03-17-10:30
 */
@FeignClient("collegelink-search")
public interface SearchFeignService {
    @PostMapping("/search/save/talk")
    public R talkStatusOpen(@RequestBody TalkEsModel talkEsModel);

    @GetMapping("/search/delete/talk")
    public R talkStatusClose(@RequestParam("talkId") Long talkId);
}
